package br.usp.wta.validator;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;
import java.util.ArrayList;
import java.util.List;

public class StatementsProvider {
    
    public static String FILE_POS = "resources/frases_simples_certas.txt";
    public static String FILE_NEG = "resources/frases_simples_erradas.txt";
    
    public static List<String> getPositiveStatements() throws IOException {

        Reader reader = new FileReader(FILE_POS);
        BufferedReader br = new BufferedReader(reader);
        
        List<String> list = new ArrayList<String>();
        while (br.ready()) {
            list.add(br.readLine());
        }
        return list;
    }

    public static List<String> getNegativeStatements() throws IOException {
        
        Reader reader = new FileReader(FILE_NEG);
        BufferedReader br = new BufferedReader(reader);
        
        List<String> list = new ArrayList<String>();
        while (br.ready()) {
            list.add(br.readLine());
        }
        return list;
    }

}
